package com.report.reportserver.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @ ClassName: HelloController
 * @ Description：测试用的controller
 * @ Modified By：
 * @ Version:
 * @ Author     ：LiYing
 * @ Date       ：Created in 19:28 2022/4/22
 */

@RestController
@RequestMapping(value = "/hello")
public class HelloController {
    
    @RequestMapping(value = "/world")
    public String helloworld(String s){
        System.out.println("I get :"+s);
        return "传入的值为："+s;
    }

    @RequestMapping(value = "/post")
    public String hellopost(HttpServletRequest request){
        String s = request.getParameter("s");
        System.out.println("I get :"+s);
        return "传入的值为："+s;
    }
}
